package cn.nubia.admin.application.query;

import cn.nubia.admin.common.mybatis.annotations.UnColumn;
import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/8.
 */
public class SoftQuery extends PageQueryParam {

    private Integer id;//软件id

    private String softName;//软件名称

    private String packageName;//包名（软件标识符）

    private String developerName;//开发者名称

    private String seo;//搜索关键词（用空格隔开）

    private Integer softSrc;//'软件来源',---nb-dict-field
    private Integer isAccredit;//是否授权（1-授权 0-未授权）
    private Integer categoryId;//分类id

    private Integer categoryId2;

    private Integer categoryId3;
    private Integer categoryParentId;//分类父id
    private Date createTimes;
    private Date createTimee;

    private String createTimeRange;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSoftName() {
        return softName;
    }

    public void setSoftName(String softName) {
        this.softName = softName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getDeveloperName() {
        return developerName;
    }

    public void setDeveloperName(String developerName) {
        this.developerName = developerName;
    }

    public String getSeo() {
        return seo;
    }

    public void setSeo(String seo) {
        this.seo = seo;
    }

    public Integer getSoftSrc() {
        return softSrc;
    }

    public void setSoftSrc(Integer softSrc) {
        this.softSrc = softSrc;
    }

    public Integer getIsAccredit() {
        return isAccredit;
    }

    public void setIsAccredit(Integer isAccredit) {
        this.isAccredit = isAccredit;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getCategoryParentId() {
        return categoryParentId;
    }

    public void setCategoryParentId(Integer categoryParentId) {
        this.categoryParentId = categoryParentId;
    }

    public Date getCreateTimes() {
        return createTimes;
    }

    public void setCreateTimes(Date createTimes) {
        this.createTimes = createTimes;
    }

    public Date getCreateTimee() {
        return createTimee;
    }

    public void setCreateTimee(Date createTimee) {
        this.createTimee = createTimee;
    }

    public String getCreateTimeRange() {
        return createTimeRange;
    }

    public void setCreateTimeRange(String createTimeRange) {
        this.createTimeRange = createTimeRange;
        if (createTimeRange != null&&createTimeRange!="") {
            this.setCreateTimes(DateUtil.getBeginDateFromRange(createTimeRange));
            this.setCreateTimee(DateUtil.getEndDateFromRage(createTimeRange));
        }
    }

    public Integer getCategoryId2() {
        return categoryId2;
    }

    public void setCategoryId2(Integer categoryId2) {
        this.categoryId2 = categoryId2;
    }

    public Integer getCategoryId3() {
        return categoryId3;
    }

    public void setCategoryId3(Integer categoryId3) {
        this.categoryId3 = categoryId3;
    }
}
